package com.jtx.miaoah2.Common;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Component;

@Component
public class Person{
    @Autowired
    private StringRedisTemplate stringRedisTemplate;

    public void doSomething(){
        System.out.println("依赖是否注入完成？ "  + stringRedisTemplate);
    }
}